sndif: Add explicit back and front parameter negotiation
authorOleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
Wed, 7 Mar 2018 08:21:20 +0000 (10:21 +0200)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 12 Apr 2018 16:57:09 +0000 (12:57 -0400)
commitba2931d4e38fac4e6960e10b245efd3badeb4aa2
tree1645c064e33b40ecbedca544b66e8f28f5eaea0c
parent41b4cff11f4c4a497067f543cb010d70119f1843
sndif: Add explicit back and front parameter negotiation

In order to provide explicit stream parameter negotiation between
backend and frontend the following changes are introduced in the protocol:
add XENSND_OP_HW_PARAM_QUERY request to read/update
configuration space for the parameter given: request passes
desired parameter interval (mask) and the response to this request
returns min/max interval (mask) for the parameter to be used.

Parameters supported by this request/response:
 - format mask
 - sample rate interval
 - number of channels interval
 - buffer size, interval, frames
 - period size, interval, frames

Signed-off-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Reviewed-by: Takashi Iwai <tiwai@suse.de>
Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Release-acked-by: Juergen Gross <jgross@suse.com>
xen/include/public/io/sndif.h